home *** CD-ROM | disk | FTP | other *** search
- Path: icg.resnet.upenn.edu!konrad
- From: konrad@icg.resnet.upenn.edu (Konrad Hernblad)
- Newsgroups: comp.lang.c
- Subject: stopping cursor after inputting 2 characters
- Date: 30 Jan 1996 02:59:14 GMT
- Organization: Internet Consultants Group
- Message-ID: <4ek1i2$bur@netnews.upenn.edu>
- NNTP-Posting-Host: icg.resnet.upenn.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- currently i'm using fgets to read in inputof length 2 from the user
- (fgets allows me to limit the number of bytes accepted). however, if the
- user enters more than 2 characters, the input is still displayed on the
- screen. is there a way to limit the number of characters displayed as
- well (i.e. beep or just stop the cursor when more than 2 characters are
- typed) w/o using getche?
-
- thanks in advance...
-
- ---
- konrad hernblad
- konrad@future.co.jp
-